/*
 * 应用管理模块
 */
// 分页查询
export function listPage() {
  return {
    url: "app/listPage",
    method: "get",
    response: (opts) => {
      const { pageNum, pageSize } = opts.data;
      const totalSize = 24;
      const content =
        pageNum * pageSize < totalSize
          ? `content|${pageSize}`
          : `content|${totalSize % pageSize}`;
      return {
        code: 200,
        msg: null,
        data: {
          pageNum,
          pageSize,
          totalSize,
          [content]: [
            {
              appCode: "@increment",
              appName: "@word",
              "versionName": "15",
              versionNumber: "@float(1, 100, 2)",
              "isForce|1": ["是", "否"],
              buildTime: "@date @time",
              commitTime: "@date @time",
              "versionStatus|1": [0, 1],
            },
          ],
        },
      };
    },
  };
}
